package com.coderman.basketball.infrast.converter.trade;

import com.coderman.basketball.domain.model.activity.SignUpRecordBO;
import com.coderman.basketball.domain.model.trade.bo.ContractBO;
import com.coderman.basketball.domain.model.trade.bo.ContractDetailBO;
import com.coderman.basketball.infrast.dao.dataobject.activity.SignUpRecordDO;
import com.coderman.basketball.infrast.dao.dataobject.contract.ContractDetailDO;
import com.coderman.basketball.infrast.dao.dataobject.contract.ContractSignRecordDO;
import org.mapstruct.Mapper;
import org.mapstruct.factory.Mappers;

import java.util.List;

/**
 * Description:
 * date: 2021/5/18
 *
 * @author shenshuai
 * @version 1.0.0
 * @since JDK 1.8
 */
@Mapper
public interface ContractConverter {
    ContractConverter INSTANCE = Mappers.getMapper(ContractConverter.class);

    ContractSignRecordDO bo2do(ContractBO contractBO);

    ContractDetailDO bo2do(ContractDetailBO contractDetailBO);

    List<ContractDetailDO> bo2do(List<ContractDetailBO> contractDetailBOList);

}
